home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Web Graphics with Shout 3D
/
Interactive Web Graphics With Shout 3D.iso
/
pc
/
Shout3Ddemo
/
Shout3d_runtime
/
codebase
/
models
/
stepInterpolatorTest
/
intStepInterpTest.s3d
< prev
next >
Wrap
Text File
|
2000-07-11
|
2KB
|
84 lines
#VRML V2.0 utf8
Background{
color 1 1 1
}
Transform{
scale 2 2 2
translation 0 0 -5
rotation 1 1 0 0.5
children[
DEF SWITCH Switch{
whichChoice 0
choice[
Shape{
appearance Appearance{ material Material{ diffuseColor 1 0 0 } }
geometry Box{}
}
Shape{
appearance Appearance{ material Material{ diffuseColor 1 1 0 } }
geometry Cone{}
}
Shape{
appearance Appearance{ material Material{ diffuseColor 0 1 0 } }
geometry Sphere{}
}
Shape{
appearance Appearance{ material Material{ diffuseColor 0 1 1 } }
geometry Cylinder{}
}
]
}
]
}
Transform{
scale 2 2 2
children[
Shape {
appearance Appearance {
material Material {
emissiveColor 1 1 1
}
}
geometry DEF ILS IndexedLineSet {
coord Coordinate {
point [ -1 -1 0, 1 -1 0, 1 1 0, -1 1 0 ]
}
coordIndex [ 0, 1, 2, 3, -2 ]
color Color {
color [ 1 1 0, 1 0 1, 0 1 1, 1 0 0 ]
}
}
}
]
}
DEF Camera01 Viewpoint{
}
DEF Combo_Dummy-TIMER TimeSensor{
cycleInterval 5
loop TRUE
}
DEF INT_TRACK IntStepInterp{
key [ 0, .25, .5, .75 ]
keyValue [ 0, 1, 2, 3 ]
}
DEF INT_ARRAY_TRACK IntArrayStepInterp{
key [ 0, .25, .5, .75 ]
keyValue [ 0 1 2 3 -2, 0 1 3 2 -2, 0 3 1 2 -2, 2 3 0 0 -2 ]
}
ROUTE Combo_Dummy-TIMER.fraction_changed TO INT_ARRAY_TRACK.set_fraction
ROUTE INT_ARRAY_TRACK.value TO ILS.coordIndex
ROUTE Combo_Dummy-TIMER.fraction_changed TO INT_TRACK.set_fraction
ROUTE INT_TRACK.value TO SWITCH.whichChoice